﻿//////////////////////////////////////////////////////////////////////////////////// Licensed under the MIT License//// Copyright (c) 2008 Chris Colinsky// All Rights Reserved//// version	0.4// http://code.google.com/p/sugarcookie/// http://code.google.com/p/sugarcookie/wiki/License//////////////////////////////////////////////////////////////////////////////////import flash.external.ExternalInterface;class sugarcookie.utils.RegExp {	public static function match(str:String, reg:String) {		if (!ExternalInterface.call("so.regExpMatch",escape(str.toString()), escape(reg))) return false;		else return true;	}		public static function replace(str:Object, reg:String, rStr:String):String {		var returnStr:Object = ExternalInterface.call("so.regExReplace", escape(str.toString()), escape(reg), escape(rStr));		return returnStr.toString();	}}